package com.xnyzc.lhy.finance.service.payment;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.finance.entity.payment.OaDBehalfPay;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 司机钱包表 服务类
 * </p>
 *
 * @author cuixiaojian
 * @since 2019-10-20
 */
public interface IOaDBehalfPayService extends IService<OaDBehalfPay> {

    /**
     * 为司机垫付
     * @param driverId 司机ID
     * @param amount 垫付金额
     * @return Map
     */
    Rv behalfDriverPayment(Long driverId, BigDecimal amount, Long orderNo, Long didiOrderId);

    /**
     * 司机垫付回款
     * @param driverId 司机ID
     * @return Map
     */
    Rv driverPaid(Long driverId, Long orderNo, Long didiOrderId);

}
